﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace School.WebPages.Teacher
{
    public partial class LadyDeedsDetails : System.Web.UI.Page
    {
        TechnologySchoolEntities db = new TechnologySchoolEntities(); 
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                BindData();
            }
        }

        private void BindData()
        { 
            int lid=int.Parse(Request.QueryString["lid"]);
            var data = db.LadyInfo.FirstOrDefault(l => l.lid == lid);
            if (data != null)
            {
                lblTitle.Text = lblname.Text = data.name;
                img.ImageUrl = data.imgPath;
                lblrjxk.Text = data.rjxe;
                lblxrzw.Text = data.xrzw;
                lblzc.Text = data.zc;
                lblxl.Text = data.xl;
                lbljj.Text = data.jj;
                lblry.Text = data.ry;
                lbllw.Text = data.lw;
                lblkt.Text = data.kt;
            }
        }
    }
}
